package com.itsv.xhyy;

import com.itsv.cyzx.bean.MeetingBean.MettingDataBean;

import android.app.Activity;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

public class WeekPlanDetailActivity extends Activity implements OnClickListener {

	private TextView tv_metting_time, tv_metting_name, tv_metting_place,
			tv_metting_leader, tv_metting_unit;
	private ImageView annex;
	private LinearLayout list;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.layout_weekplandetail);
		MettingDataBean meetingBean = (MettingDataBean) getIntent()
				.getSerializableExtra("bean");
		initView(meetingBean);
	}

	private void initView(MettingDataBean meetingBean) {

		tv_metting_time = (TextView) findViewById(R.id.tv_metting_time);
		tv_metting_name = (TextView) findViewById(R.id.tv_metting_name);
		tv_metting_place = (TextView) findViewById(R.id.tv_metting_place);
		tv_metting_leader = (TextView) findViewById(R.id.tv_metting_leader);
		tv_metting_unit = (TextView) findViewById(R.id.tv_metting_unit);
		findViewById(R.id.iv_alarm).setVisibility(View.GONE);
		
		tv_metting_time.setText(meetingBean.getMettingTime());
		tv_metting_name.setText(meetingBean.getMettingName());
		tv_metting_place.setText(meetingBean.getMettingPlace());
		tv_metting_leader.setText(meetingBean.getMettingLeader());
		tv_metting_unit.setText(meetingBean.getMettingUnit());
		
		findViewById(R.id.btn_goback).setOnClickListener(this);
	}	

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch (v.getId()) {
		case R.id.btn_goback:
			this.finish();
			break;

		default:
			break;
		}
	}

}
